<script>
export default {
  props: ["node"],
  data() {
    return {};
  },
  render() {
    !this.node.hint?this.$set(this.node,'hint', '请输入'):null
    !this.node.input_type?this.$set(this.node,'input_type', 'text'):null
    return (
      <el-input
        type={this.node.input_type}
        value={this.node.answer}
        placeholder={this.node.hint}
        onInput={(e) => {
          this.node.answer = e;
        }}
        size="small"
        clearable
      ></el-input>
    );
  },
};
</script>

<style scoped>

</style>